package win.ganbo.easyframwork.commons.shiro;

import java.awt.Menu;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @description：自定义Authentication对象，使得Subject除了携带用户的登录名外还可以携带更多信息
 * @author ganbo
 * @date 2017年5月5日 上午11:07:45
 */
public class ShiroUser implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String username;
	private String nickname;
	private Set<Menu> menus = new HashSet<>();
	private Set<String> urlSet = new HashSet<>();
	private Set<String> roles = new HashSet<>();

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
	public Set<String> getUrlSet() {
		return urlSet;
	}
	public void setUrlSet(Set<String> urlSet) {
		this.urlSet = urlSet;
	}
	public Set<String> getRoles() {
		return roles;
	}
	public void setRoles(Set<String> roles) {
		this.roles = roles;
	}
	public Set<Menu> getMenus() {
		return menus;
	}
	public void setMenus(Set<Menu> menus) {
		this.menus = menus;
	}
	
}
